//
//  HNThreeGoodEvaNewModel.m
//  优学荟管理系统
//
//  Created by edz on 2017/12/19.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "HNThreeGoodEvaNewModel.h"

@implementation HNThreeGoodEvaNewModel

// 实例化
- (instancetype)init_ValuForKeyWithDict:(NSDictionary *)Dict {
    self = [super init];
    if (self) {
        
        [self setValuesForKeysWithDictionary:Dict];
        self.Enable = YES;

    }
    return self;
}

// KVO
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"id"]) {
        
        self.ID = value;
    }
    
    // 课程列表的三好评价
    if ([key isEqualToString:@"owner"]) {
        
        self.O_petName = value[@"petName"];
        self.avatar = value[@"avatar"];
        self.O_UID = value[@"uid"];
    }
}

@end
